const mongoose = require("mongoose");

const rolesSchema = mongoose.Schema({
    roleName: String,
    remark:String,
    permissionList: {
        checkedKeys: [],
        halfCheckedKeys:[]
    },
    "createTime": {
        type: Date,
        default: Date.now()
    },
    "updateTime": {
        type: Date,
        default: Date.now()
    },
})

module.exports = mongoose.model("role", rolesSchema, "roles");